import 'package:drift/drift.dart';

mixin BaseTableMixin on Table {
  ///创建时间
  DateTimeColumn get createTime =>
      dateTime().clientDefault(() => DateTime.now())();

  ///更新时间
  DateTimeColumn get updateTime =>
      dateTime().clientDefault(() => DateTime.now())();
}
